//
//  HMContactViewController.m
//  HMSupplier
//
//  Created by haohao on 2017/7/3.
//  Copyright © 2017年 haohao. All rights reserved.
//

#import "HMContactViewController.h"
#import "HMCustomAlertView.h"

@interface HMContactViewController () <HMCustomAlertViewDelegate>

@end

@implementation HMContactViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];

    // Do any additional setup after loading the view from its nib.
   
}

- (void)viewWillAppear:(BOOL)animated
{
    HMCustomAlertView * _auditVC = [[HMCustomAlertView alloc] initWithTitle:@"客服电话" contentString:@"400-0999-168" cancleString:@"取消" actionString:@"确认"];
    _auditVC.delegate = self;
    [_auditVC show];
}

#pragma mark - HMCustomAlertViewDelegate
- (void)alert:(HMCustomAlertView *)alertView clickBnt:(select_type)clickBtn {
  
  
        NSMutableString *str = [[NSMutableString alloc] initWithFormat:@"telprompt://%@",@"4000999168"];
        [[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]];
}

@end
